<#include "_layout.html" />
<@head title="首页 ">
	<script src="/js/cate_nav.js" type="text/javascript"></script>
	<link href="/css/pagination.css" type="text/css" rel="stylesheet"/>
	<link href="/css/item_display.css" type="text/css" rel="stylesheet"/>
</@head>
<@body>
        <#include "_nav.html" />
		<@Nav 1/>
		<div id="category">
			<div id="cate_handle"></div>
			<div id="cate_panel">
				<#list nav as nav>
				<a href="/?brand=${nav.brand}" class="cate_item">${nav.brand}</a>
            	</#list>
			</div>
		</div>
        <div class="main_div">
            <#list list.getList() as b>
            <div class="item_div" id="${b.item_id}">
                <div class="img_div">
                    <a href="show/${b.item_id}"><img src="http://resources.shopstyle.com/pim/${b.img}" title="${b.name}"/></a>
                </div>
                <div class="item_info">
                    <div class="info">
                        <span style="font-size:13px;font-weight:bold;">
							<#if b.name?length lt 26 > 
								${b.name}
							<#else>
								${b.name[0..22]}...
							</#if>
						</span>
                        <br/>
                        <span style="font-size:13px;">编号：${b.item_id}</span>
                        <br/>
                        <span style="font-size:13px;">品牌：${b.brand}</span>
                        <br/>
                        <span style="font-size:13px;font-weight:bold">
							<#if b.price??>
								￥${(((b.price?number*1.1+70)*6.3)?string)?split(".")[0]}
							<#else>
								
							</#if>
						</span>
                    </div>
                </div>
            </div>
            </#list>
            <div style="clear:both;">
            </div>
        </div>
        <div style="clear:both;">
        </div>
        <div style="width:100%;background-color:#fff;height:50px;text-align:right;padding:5px 0 20px 0;border-top:2px solid #c8c8c8">
            <#include "_paginate.html" /><@paginate currentPage=list.pageNumber totalPage=list.totalPage actionUrl="/?page=" />
        </div>
</@body>
